<script src="<?php echo baseTheme();?>/js/jwplayer.js"></script>
<div id='mediaplayer'>
<?php
if(empty($rtmp))  echo "Rtmp is wrong!!";
?>
</div>
<script type='text/javascript'>

	
	jwplayer("mediaplayer").setup({

		flashplayer: '<?php echo baseTheme();?>/js/player.swf',
		id: 'player1',
		width: '600',
		height: '430',
		stretching: "fill",
		autostart: false,
		skin: "<?php echo baseTheme();?>/js/skins/newtube.zip",
		image: '<?php echo $channel->site_name;?>',
		abouttext: "&copy;    zcasthd 2014",
		aboutlink:"<?php echo Yii::app()->createAbsoluteUrl('/');?>",
		logo: {
			file: '<?php echo Yii::app()->baseUrl;?>/upload/images/logo_small.png',
			link: '<?php echo Yii::app()->baseUrl;?>',
			position: 'top-right',
			hide: false
		},
		provider: 'rtmp',
		streamer: '<?php echo $rtmp->alias;?>/',
		file: "<?php echo $channel->name;?>"
		
	});
</script>
<div id="floatLayer1" style="height: 250px; left: 150px; position: absolute; top: 100px; width: 300px;">

	<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC="http://cricwicket.com/streamer247.php"></IFRAME>

	<div style="position: absolute; left: 0px; top: 0px; width: 10px; height: 9px; visibility: visible;">
		<span onmouseup="document.getElementById('floatLayer1').style.display='none'"><img src="http://i50.tinypic.com/rkzus9.png"/></span>
	</div>
</div>

<div  id="bannerfloat8" style="position: absolute; top: 25px; left: 150px; height: 250px; width: 300px; z-index:111; display:none">
 <div id="close8" style="opacity:0.75;filter:alpha(opacity=75);display:none; background-color:#000; width:120px; height:14px; font-family:Arial, Helvetica, sans-serif;color:white; font-size:10px;padding:1px;float:left;" ><div style="float:left">Ad will Close in &nbsp;</div><div id="notifier" style="float:left"></div><div id="countdown" style="float:left"></div><div style="float:right"><span onmouseup="document.getElementById('bannerfloat8').style.display='none'"><img src="http://i50.tinypic.com/rkzus9.png" height="10"/></span></div></div>
<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC="http://zcasthd.com/ads/300.html"></IFRAME>
<div ></div></div>


<div  id="bannerfloat7" style="position: absolute; top: 40px; left: 150px; height: 250px; width: 300px; z-index:111; display:none">
 <div id="close" style="opacity:0.75;filter:alpha(opacity=75);display:none; background-color:#000; width:120px; height:14px; font-family:Arial, Helvetica, sans-serif;color:white; font-size:10px;padding:1px;float:left;" ><div style="float:left">Ad will Close in &nbsp;</div><div id="notifier" style="float:left"></div><div id="countdown" style="float:left"></div><div style="float:right"><span onmouseup="document.getElementById('bannerfloat7').style.display='none'"><img src="http://i50.tinypic.com/rkzus9.png" height="10"/></span></div></div>

<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=300 HEIGHT=250 SRC="http://zcasthd.com/ads/301.html"></IFRAME>
<div ></div></div>


<script type="text/javascript">

  function display( notifier, str ) {
    document.getElementById(notifier).innerHTML = str;
  }
 
  function toMinuteAndSecond( x ) {
    return x%60;
  }
 
  function setTimer( remain, actions ) {
    (function countdown() {
       display("countdown", toMinuteAndSecond(remain));  
       actions[remain] && actions[remain]();
       (remain -= 1) >= 0 && setTimeout(arguments.callee, 1000);
    })();
  }

  setTimer(35, {
        0: function () {       }
  }); 

</script>

<script type="text/javascript">
function showIt2() {
  document.getElementById("close").style.display = "block";
    document.getElementById("bannerfloat7").style.display = "block";
}
function hide() {
  document.getElementById("close").style.display = "none";
  document.getElementById("bannerfloat7").style.display = "none";
}
function hide3() {
  document.getElementById("close8").style.display = "none";
  document.getElementById("bannerfloat8").style.display = "none";
}
function showIt3() {
  document.getElementById("close8").style.display = "block";
    document.getElementById("bannerfloat8").style.display = "block";
}


setTimeout("showIt3()", 280000);
setTimeout("hide3()", 300000); // after 1 sec

setTimeout("showIt2()", 510000);
setTimeout("hide()", 660000); // after 1 sec

setTimeout("showIt2()", 740000);
setTimeout("hide()", 770000); // after 1 sec

setTimeout("showIt2()", 850000);
setTimeout("hide()", 880000); // after 1 sec
</script>
